package cn.midas.org.service;

import cn.midas.basic.utils.PageList;
import cn.midas.org.domain.Department;
import cn.midas.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //查询所有
    List<Department> loadAll();

    // 根据id查询
    Department loadById(Long id);

    // 添加

    void save(Department department);

    // 修改
    void update(Department department);


    // 删除
    void remove(Long id);

    // 查询当前页数据
    PageList<Department> queryData(DepartmentQuery departmentQuery);


}
